export default {
  state: {
    loading: false // 加载动画
  },
  mutations: {
    /**
     * 显示加载动画
     */
    showLoading: (state) => {
      state.loading = true
    },
    /**
     * 隐藏加载动画
     */
    hideLoading: (state) => {
      state.loading = false
    }
  },
  getters: {
    toggleLoadingGif: (state) => {
      return state.loading
    }
  }
}
